package me.xingyannian.hope.repository;

import me.xingyannian.hope.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface UserRepository extends JpaRepository<User, Long>, JpaSpecificationExecutor<User> {
    Boolean existsByLoginId(String loginId);

    User getUserByLoginId(String loginId);
}